package DecoratorPattern;

import DecoratorPattern.Cirle.Shape;

/**
 * @Author: zhaojie
 * @Date: Created in 16:59 2018/6/26
 * @Description: 实体装饰者
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape protectShap) {
        super(protectShap);
    }
    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("Border Color: Red");
    }

}
